package com.atguigu.yygh.user.userfeignorder;

import com.atguigu.yygh.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "service-user")
@Component
@RequestMapping("/api/user/patient/auth")
public interface PatientFeignClient {

    /**
     *  通过id获取就就诊人
     * @param PatientId
     * @return
     */
    @GetMapping("inner/getPatient/{id}")
    Patient getPatientOfOrderById(@PathVariable("id") Long PatientId);



}
